package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;

/**
 * @author 28188
 */
@Getter
public class StockException extends RuntimeException{
    /**
     *  响应码
     */
    private final Code code;

    public StockException(Code code) {
        this.code = code;
    }
}